//
//  MBBLEDeviceCell.m
//  mZero-iOS
//
//  Created by catch on 16/8/23.
//  Copyright © 2016年 Shenzhen Maker Works Technology Co., Ltd. All rights reserved.
//

#import "MBBLEDeviceCell.h"

@interface MBBLEDeviceCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *distanceLab;

@end

@implementation MBBLEDeviceCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

-(void)configureWithName:(NSString *)name distance:(CGFloat)distance{
    _nameLab.text = name;
    _distanceLab.text = [NSString stringWithFormat:@"%.1fm",distance>20.0f?20.0f:distance];
}

@end
